from fastapi import APIRouter, Depends
from api.admin.endpoints.login import admin_login_router
from api.admin.endpoints.user import admin_user_router
from api.admin.endpoints.common import common_router
from depends.admin_depends.auth import get_current_user
admin_deps = [Depends(get_current_user)]

admin_router = APIRouter(prefix='/admin')
admin_router.include_router(admin_login_router, tags=["登录相关"])
admin_router.include_router(common_router, tags=["公共方法"], dependencies=admin_deps)
admin_router.include_router(admin_user_router, tags=["后台管理"], dependencies=admin_deps)

